# Contributor: Carlo Landmeter
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=eggdbus
pkgver=0.6
pkgrel=8
pkgdesc="Experimental D-Bus bindings for GObject"
url="https://cgit.freedesktop.org/~david/eggdbus"
arch="all"
license="LGPL-2.1-or-later"
makedepends="glib-dev dbus-glib-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://hal.freedesktop.org/releases/eggdbus-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-static
	make -j1
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="76fbb32166fdedb68b8b552a2e5c25d00399ecf34425ec57ba008af8ba4d4fc0dfa19cfdeedd1a4a2bed8750a0be146c88a083b1d518de020afb7b5ca96f2fda  eggdbus-0.6.tar.gz"
